// routes-MypageRoute.ts
import { createRouter, createWebHashHistory } from 'vue-router';

const routes = [
  {
    path: '/myPage',
    name: 'layout',
    component: () => import(/* webpackChunkName: "layout" */ '../pages/myPage/index.vue'),
    children: [
      {
        path: 'DingYue',
        name: '管理员页面内容组件',
        component: () => import('~/pages/myPage/DingYue.vue'),
      },
      {
        path: 'role',
        name: '角色页面内容组件',
        component: () => import(/* webpackChunkName: "role" */ '../pages/myPage/Role.vue'), // Replace with your actual component
      },
      {
        path: 'admin',
        name: '菜单页面内容组件',
        component: () => import(/* webpackChunkName: "admin" */ '../pages/myPage/Admin.vue'), // Replace with your actual component
      },
    ],
  },
];

const MyPageRouter = createRouter({
  history: createWebHashHistory(),
  routes,
});

export default MyPageRouter;